home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.2r / background_3091.txt < prev    next >
Text File  |  1989-02-26  |  2KB  |  85 lines

  1. -- background: 3091 from stack: in.2r
  2. -- bmap block id: 0
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: Home Card
  6. ----- HyperTalk script -----
  7. on opencard
  8.   hide menubar
  9.   set the name of button id 63 to "Menus On"
  10.   put the size of this stack into card field "StackSize"
  11.   put the freesize of this stack into card field "Wasted"
  12. end opencard
  13.  
  14.  
  15. on listButton ListName
  16.   if the short name of the target is "Show List" then
  17.     set name of target to "Hide List"
  18.     set visible of card field ListName to true
  19.   else
  20.     set name of target to "Show List"
  21.     set visible of card field ListName to false
  22.   end if
  23. end listButton
  24.  
  25. on controlbutton ref
  26.   if the commandkey is down then
  27.     visual dissolve to black
  28.     visual dissolve
  29.     go first card of background ref
  30.     exit controlbutton
  31.   end if
  32.  
  33.   set cursor to 4
  34.   put sortitems(card field ref,false) into theList
  35.   DoList "Card","Cancel",theList,one
  36.   get the result
  37.   if it is not empty then
  38.     push this card
  39.     visual scroll left to gray
  40.     visual scroll right
  41.     go card item 2 of it
  42.   end if
  43. end controlbutton
  44.  
  45.  
  46. on domenu which
  47.   if which is "New Card" or which is "Cut card" or which is "Delete Card" then
  48.     beep 3
  49.     exit domenu
  50.   end if
  51.   if which is "Protect Stack..." then
  52.     beep 3
  53.     answer "You don't want to do that!"
  54.     exit domenu
  55.   end if
  56.   if which is "Delete Stack..." then
  57.     play boing
  58.     answer "You really don't want to do that!"
  59.     exit domenu
  60.   end if
  61.   pass domenu
  62. end domenu
  63.  
  64.  
  65.  
  66. -- part 1 (button)
  67. -- low flags: 80
  68. -- high flags: A004
  69. -- rect: left=184 top=23 right=49 bottom=309
  70. -- title width / last selected line: 0
  71. -- icon id / first selected line: 0 / 0
  72. -- text alignment: 1
  73. -- font id: 0
  74. -- text size: 12
  75. -- style flags: 0
  76. -- line height: 16
  77. -- part name: Developer Stack
  78. ----- HyperTalk script -----
  79. on mouseUp
  80.  
  81.  
  82.  
  83.  
  84. end mouseup
  85.